package br.usp.ime.mac.mico.dao;

import javax.persistence.EntityManager;

import br.usp.ime.mac.mico.models.Sample;


public interface SampleDAO {

	//These methods control the persistence manager of this class.
	public EntityManager openPersistence();

	public void closePersistence();

	//These methods actually allow database access to Samples.
	public long salvar(Sample sample);

	public void atualizar (Sample sample);

	public Sample buscaPorId (long id);
}
